﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nage.Algorithms.Stop
{
    /// <summary>
    /// Stop condition interface. When implemented it defines
    /// when algorithm should stop computing
    /// </summary>
    public interface IStopCondition
    {
        /// <summary>
        /// Checks if the stop condition is fulfilled
        /// </summary>
        /// <returns>true if condition is fulfilled, false otherwise</returns>
        Boolean IsFulfilled();
    }
}
